
<div class="pull-right" data-responsive-table-toolbar="grid-table">
    <div class="btn-group" style="margin-right:3px">
        <button type="button" class="btn btn-primary btn-outline download" data-id="{{$options['answer_id']}}" data-title="{{$options['title']}}" data-type="{{$options['type']}}">
            <i class="feather icon-download"></i>
            <span class="d-none d-sm-inline">&nbsp;导出{{$options['type_title']}}&nbsp;</span>
        </button>
    </div>
</div>

<script>

// 导出数据
$('.download').click(function () {
    var id = $(this).data('id');
    var title = $(this).data('title');
    var type = $(this).data('type');

    window.open("/admin/export?answer_id=" + id + "&title=" + title + "&type=" + type);
})
</script>